import { PartialType } from '@nestjs/mapped-types'
import { CreateUserDto } from './create-user.dto'
import { ApiProperty } from "@nestjs/swagger"
import { UserRole } from '../roles.enum'


export class UpdateUserDto extends PartialType(CreateUserDto) {

    @ApiProperty({title:'用户名（昵称）'})
    username:string

    @ApiProperty({title:'密码'})
    password:string

    @ApiProperty({title:'年龄'})
    age:number

    @ApiProperty({ title: '头像图片的url' })
    avatar_url: string

    @ApiProperty({
        title: '角色',
        enum:[ 'normal','admin']
    })
    role: UserRole

    @ApiProperty({ title: '站外用户关联表id' })
    rid: number

}
